<layout name="Layout/main" />
<div class="panel panel-default">
	<div class="panel-heading">
		<span><a href="{:U('Rbc/addrole')}" class="btn btn-success">添加用户</a></span>
	</div>
	<!-- Table -->
	<table class="table  panel-body ">

		<tr>
			<th class='col-sm-1'>角色ID</th>
			<th>用户名</th>
			<th>角色组</th>
			<th>状态</th>
			<th>操作</th>
		</tr>
		<empty name='list'>
		<tr>
			<td colspan='4'>暂无数据</td>
		</tr>
		<else /> <volist name="list" id='vo'>
		<tr>
			<td>{$i}</td>
			<td>{$vo.adm_name}</td>
			<td><if condition=" $vo['id'] eq 1">
				<e class='text-success'>创始人</e>
				<else />{$vo['role'][0]['name']}</if></td>


			<td><if condition=" $vo['status'] eq 1">
				<span class="glyphicon glyphicon-ok text-success"></span>
				<else />
				<span class=' text-danger glyphicon glyphicon-remove
			'></span></if></td>
			<td><a class='btn btn-xs'
				href="{:U('rbc/delrole',array('id'=>$vo['id']))}" title="删除用户"><span
					class=" glyphicon glyphicon-remove-sign text-danger"></span> 删除</a><a
				class='btn btn-xs'
				href="{:U('rbc/editrole',array('id'=>$vo['id']))}" title="编辑用户 "><span
					class="glyphicon glyphicon-edit text-info"></span> 编辑</a> <a
				class='btn  btn-xs ' href="{:U('rbc/role',array('id'=>$vo['id']))}"
				title="禁用用户"><span
					class="glyphicon glyphicon-ban-circle text-primary"></span> 禁用</a></td>
		</tr>
		</volist> </empty>
	</table>
</div>